home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume4 / msg / fmtd2 < prev    next >
Encoding:
Text File  |  1986-11-30  |  50.3 KB  |  1,815 lines

  1. Newsgroups: mod.sources
  2. From: decvax!genrad!panda!sources (John P. Nelson)
  3. Subject: Msg docs preformatted (part 1 of 2)
  4. Approved: jpn@panda.UUCP
  5.  
  6. Mod.sources:  Volume 4, Issue 36
  7.  
  8. If your site has the "mm" macro package, then you don't need this, the
  9. formatted documentation for the Msg mail system.
  10.  
  11. #! /bin/sh
  12. # This is a shell archive, meaning:
  13. # 1. Remove everything above the #! /bin/sh line.
  14. # 2. Save the resulting text in a file.
  15. # 3. Execute the file with /bin/sh (not csh) to create the files:
  16. #    Guide.fmtd
  17. # This archive created: Sat Mar 15 10:06:24 1986
  18. export PATH; PATH=/bin:$PATH
  19. echo shar: extracting "'Guide.fmtd'" '(50526 characters)'
  20. if test -f 'Guide.fmtd'
  21. then
  22.     echo shar: will not over-write existing file "'Guide.fmtd'"
  23. else
  24. cat << \SHAR_EOF > 'Guide.fmtd'
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.                     Msg 3.1 Users Guide
  33.  
  34.  
  35.                         Dave Taylor
  36.  
  37.  
  38.                        March 15, 1986
  39.  
  40.  
  41.  
  42.  
  43.  
  44. 1.  Introduction
  45.  
  46.      The UNIX operating system was originally written  on  a
  47. small  PDP  machine  to  work  with teletypewriters.  Conse-
  48. quently, all the original software for the operating  system
  49. was  written  with  a  'tty'  in  mind  - they were all line
  50. oriented, rather than screen oriented.
  51.  
  52.      Gradually this began to change, and, with the  addition
  53. of  the  Berkeley vi visual shell to the ed line editor, the
  54. trend was brought to the attention of certain  UNIX  systems
  55. designers.
  56.  
  57.      This, however, seemingly hasn't been enough, as vi  and
  58. notes  are still the only screen oriented software available
  59. (other than games, which are a taboo subject  with  managers
  60. and  the like!).  Consequently, after becoming more and more
  61. frustrated with the existing electronic mail  facilities  on
  62. the  system  ('mail'  and  'mailx', both of which are essen-
  63. tially line-editors) I decided to write my own!
  64.  
  65.      This document discusses the msg mailer, and includes  a
  66. set  of  example  screens  and a discussion of configuration
  67. (for systems administrators).  It is broken  down  into  the
  68. following   general  sections;  The  .msgrc  file,  starting
  69. options of msg, the main system level, responses of  various
  70. commands, the alias system, and system configuration.
  71.  
  72.      Any comments or problems with either this  document  or
  73. the program itself are welcome: all installed systems should
  74. have an alias that will ensure that I receive any mail  sent
  75. to 'msg'.
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86. Page 1
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94. Msg Users Guide                                  Version 3.2
  95.  
  96.  
  97.  
  98. 2.  The .msgrc File
  99.  
  100.      The msg mailer has the ability to automatically read in
  101. a  configuration  file at each invocation.  The file must be
  102. called ".msgrc" and reside in your home directory for it  to
  103. be read in, and can have any of the following entries in any
  104. order (note that the first four entries replace  environment
  105. variables  of  the  same  name, and the four boolean options
  106. supplement required starting parameters);
  107.  
  108. fullname  This is the name the mailer will use when  sending
  109.           mail  from you.  It is highly recommended that you
  110.           use your full name and nothing strange or unusual,
  111.           as  that  can  appear  extremely  rude  to  people
  112.           receiving your mail.
  113.  
  114. maildir   This is the default mail folder.  It  is  used  to
  115.           expand  filenames  in  the  mailer  when specified
  116.           using the '=' metacharacter.  That is, if you save
  117.           to file "=/stuff" then the '=' will be expanded to
  118.           the current value of maildir.
  119.  
  120. mailbox   This is where to put incoming  mail  after  you've
  121.           read  it.   When  you  answer  'y' to the "save to
  122.           mailbox?" prompt, this is where the messages go!
  123.  
  124. editor    The editor to use when typing in message  to  peo-
  125.           ple.
  126.  
  127. print     This indicates how to print out a message.   There
  128.           are two possible formats for this string, either a
  129.           command that can have a filename affixed to (as  a
  130.           suffix) and then sent to the system for execution,
  131.           or a string that contains the  meta-sequence  '%s'
  132.           which will be replaced by the name of the file and
  133.           then also sent to the  shell.   Examples  of  each
  134.           are;
  135.  
  136.                   print = print -formfeed
  137.                   print = pr %s | lpr
  138.  
  139.  
  140. prefix    When you reply to a message or forward  a  message
  141.           to  another person, you can optionally include the
  142.           original message.  Defining the prefix value  here
  143.           allows  you  to  indicate  what the prefix of each
  144.           included line should be.  The default is "> "  and
  145.           is fairly standard in the Unix community.
  146.  
  147. savemail  This is where  outgoing  mail  will  have  a  copy
  148.           silently  (and  quickly) saved.  This will only be
  149.  
  150.  
  151.  
  152. Page 2
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160. Msg Users Guide                                  Version 3.2
  161.  
  162.  
  163.  
  164.           used if the flag 'copy' is turned on.   Also  note
  165.           that if the 'savename' flag is turned on then this
  166.           line is ignored since  each  outgoing  message  is
  167.           saved according to whom it's being sent to.
  168.  
  169. shell     This defines the  shell  to  use  when  doing  '!'
  170.           escapes  and  such.   Note  that  the program also
  171.           reads the  $SHELL  variable  out  of  the  current
  172.           environment,  but that defining this in the .msgrc
  173.           file will override the environment definition.
  174.  
  175. weedout   This is something new and exciting!  When specify-
  176.           ing this option, you can then list as many headers
  177.           of messages that you don't want to  see  when  you
  178.           are read mail.  This list can continue for as many
  179.           lines as desired, as long as the  continued  lines
  180.           all have leading indentation.
  181.  
  182. alternatives This is a list of other machine/username combi-
  183.           nations  that  you  receive mail from (forwarded).
  184.           This is used when  the  G)roup  reply  feature  is
  185.           invoked  to  ensure that you don't send yourself a
  186.           copy of the outbound message.
  187.  
  188. autocopy  This is a boolean flag, and if set will  automati-
  189.           cally  copy the text of each message being replied
  190.           to into the edit buffer.  This is the same as  the
  191.           '-a' starting parameter.
  192.  
  193. copy      This, in combination with the "savemail" filename,
  194.           will allow you to have silent copies of all outgo-
  195.           ing mail made on the outbound step.
  196.  
  197. resolve   This is a boolean flag that defines the  behaviour
  198.           of  the program for such actions as deletion, sav-
  199.           ing a message and so on.
  200.  
  201. weed      This is a boolean flag that, in  combination  with
  202.           the  "weedout"  list,  allows you to custom define
  203.           the set of headers you  would  like  to  not  have
  204.           displayed  while  reading  messages.  The defaults
  205.           are listed further into the document.
  206.  
  207. noheader  This boolean flag tells the mailer not to  include
  208.           the  headers  of  messages  when copying a message
  209.           into a file buffer for replying to or forwarding.
  210.  
  211. titles    This boolean flag allows you to have each page  of
  212.           a message to be titled with:
  213.           Message #N from username        Mailed date at time
  214.           where all  the  information  has  been  previously
  215.  
  216.  
  217.  
  218. Page 3
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Msg Users Guide                                  Version 3.2
  227.  
  228.  
  229.  
  230.           extracted  from  the  message.  This is especially
  231.           useful if you weed out all  the  headers  of  each
  232.           message with a large 'weedout' list...
  233.  
  234. Two more things: the format for each of the lines is;
  235.  
  236.         variable = value
  237.  
  238. and for boolean variables, value can be 'ON' or 'OFF' only.
  239.  
  240. For a better idea of how this all works,  here's  my  .msgrc
  241. file.   While  looking  through it, notice that you can have
  242. lots of comments and blank lines for  readability  and  that
  243. you can also use 'shell variables' and the '~' metacharacter
  244. for your home directory, and they are  expanded  accordingly
  245. when read in by the mailer.
  246.  
  247.   #
  248.   # .msgrc - automatic variable defines for the 'msg' mailer.
  249.   #
  250.   # Personalized for Dave Taylor
  251.   #
  252.  
  253.   fullname = Dave Taylor
  254.  
  255.   # where to save my mail to, default directory
  256.   maildir  = ~/Mail
  257.  
  258.   # where to save messages to, default file
  259.   mailbox  = ~/Mail/mailbox
  260.  
  261.   # what editor to use
  262.   editor   = $EDITOR
  263.  
  264.   # where to save mail if not specified somewhere else
  265.   savemail = ~/Mail/mail.sent
  266.  
  267.   # how to print a message ('%s' is the filename)
  268.   print    = /usr/local/bin/print -p lpn -f %s
  269.  
  270.   # prefix sequence for including message text in other messages...
  271.   prefix = >
  272.  
  273.   # what headers I DON'T want to see, ever.
  274.  
  275.   weedout  = "Via:"  "Sent:"  "Date:"  "Status:"  "Original"
  276.              "From"  "Phase"  "Subject:"  "Fruit"  "Sun"
  277.              "Lat"  "Buzzword"  "Return"  "Posted" "Telephone"
  278.              "Postal-Address" "Origin" "X-Sent-By-Nmail-V"
  279.              "Resent" "X-Location"  "Source" "Mood"  "Neuron"
  280.              "Libido" "To:" "X-Mailer:"  "Full-Name:" "X-HPMAIL"
  281.  
  282.  
  283.  
  284. Page 4
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292. Msg Users Guide                                  Version 3.2
  293.  
  294.  
  295.  
  296.              "Cc:" "cc:" "Mmdf" "Network-"
  297.  
  298.   # automatically copy message being replied to into buffer?
  299.   autocopy = OFF
  300.  
  301.   # save a copy of all outbound messages?
  302.   copy     = ON
  303.  
  304.   # emulate the mailx message increment mode (only increment after something
  305.   # has been 'done' to a message, either saved or deleted)
  306.   resolve  = ON
  307.  
  308.   # enable the weedout list to be read...
  309.   weed     = ON
  310.  
  311.   # when messages are copied into the outbound buffer, don't include headers
  312.   noheader = ON
  313.  
  314.   # display message title when displaying pages of message
  315.   titles         = ON
  316.  
  317.   # alternative addresses that I could receive mail from (usually a
  318.   # forwarding mailbox)
  319.  
  320.   alternatives = hpcnof!dat,  hpcnof!d_taylor,   hpcnou!d_taylor,
  321.                  hpcnou!root, hpcnou!postmaster, hpcnoe!d_taylor,
  322.                  hpcnoe!dat,  hpcnoa!d_taylor,   hpcnoa!dat,
  323.                  hpfcla!d_taylor
  324.  
  325. Along with this, there is still an environment variable that
  326. the  mailer  checks  for,  namely  "EDITOR",  which can also
  327. define what editor to use when entering messages.   As  with
  328. the shell variable, having an editor specified in the .msgrc
  329. file  will  override  anything  read  in  from  the  current
  330. environment.
  331.  
  332.  
  333.  
  334.  
  335. 3.  The Starting Parameters
  336.  
  337.      There are a number of starting options to the msg  pro-
  338. gram, with only one that needs to be remembered: '-?'or '-h'
  339. for help.
  340.  
  341. The flags are;
  342.  
  343.    -d     Debug.  Useful for debugging the msg program.  The
  344.           results  of  using  the  debug option is much less
  345.           drastic than in the previous versions of the  pro-
  346.           gram  -  it  creates a file in your home directory
  347.  
  348.  
  349.  
  350. Page 5
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358. Msg Users Guide                                  Version 3.2
  359.  
  360.  
  361.  
  362.           called "Msg.debug.info" and  creates  a  (verbose)
  363.           log of activity as the program is used.
  364.  
  365.    -f <file> File.  Read  specified  file  rather  than  the
  366.           default input mailbox.
  367.  
  368.    -h or -? Help.  Gives a short list of all  these  options
  369.           and exit.
  370.  
  371.    -k     Keypad - This option, when used, lets the msg pro-
  372.           gram  know  that  you're on an HP terminal, and it
  373.           can then interpret the PREV  NEXT  and  HOME/DOWN-
  374.           HOME  keys  accordingly.   If you are not on an HP
  375.           terminal, it is recommended that you  do  NOT  use
  376.           this option.
  377.  
  378.    -s     Softkeys.  The msg mailer can, to a rather limited
  379.           extent, use the HP softkeys as an alternative form
  380.           of input.  If you specify this option be sure that
  381.           you're on an HP terminal that can accept the stan-
  382.           dard 2622 terminal escape sequences!
  383.  
  384.    -z     Zero.  This causes the mailer not to be started if
  385.           you  don't  have  any  mail.    This  emulates the
  386.           behaviour of programs like 'mailx'.
  387.  
  388.    -S <subject> In batch mode, this is how to  indicate  the
  389.           subject  of the resulting message.  Please see the
  390.           section  on  "Non-Interactive  Uses  of  Msg"  for
  391.           further information.
  392.  
  393.      All the above flags default to reasonable  options,  so
  394. there is usually no need to use them.
  395.  
  396.  
  397.  
  398.  
  399. 4.  Non-Interactive Uses of Msg
  400.  
  401.      Before we discuss the main mail system, it's worth not-
  402. ing  that  there  are  a couple of other ways to use the msg
  403. mail system, namely to 'send only' and to send files (batch-
  404. mail).
  405.  
  406.      To send a message to someone without any of the associ-
  407. ated  overhead  of  the  main  system  being loaded, you can
  408. invoke the mailer with the name(s) of the people to send to.
  409. The  mailer  will  then prompt for Subject, Copies, and then
  410. drop you in your (defined in the ".msgrc"  file)  editor  to
  411. compose  the  message.    When  composition is complete, the
  412. program verifies transmission then terminates.  For example;
  413.  
  414.  
  415.  
  416. Page 6
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424. Msg Users Guide                                  Version 3.2
  425.  
  426.  
  427.  
  428.   $ msg dat
  429.   To: ihnp4!hpfcla!d_taylor
  430.   Subject: this is a test
  431.   Copies To: <return>
  432.  
  433.   <invokes editor, message composed, then>
  434.  
  435.   Are you sure you want to send this? (y/n) y
  436.  
  437.   mail sent.
  438.  
  439.   $
  440.  
  441. Note that the user input is in bold face,  so  you  can  see
  442. that the mailer verified the alias expansion too!
  443.  
  444.  
  445.      The mailer also supports batch type mailing,  of  files
  446. and so on, by using the following starting sequence;
  447.  
  448.   $ msg -S "File help.c" dat < help.c
  449.  
  450. which will read in the file and transmit it to the specified
  451. user  with  the specified subject.  Note that the program is
  452. intelligent enough to check to see what the  stdin  is  from
  453. this invocation, so a command of the form
  454.  
  455.   $ msg -S "file help.c" dat
  456.  
  457. would result in the following sequence (since the program is
  458. reading the "standard in" for information;
  459.  
  460.   $ msg -S "file help.c" dat
  461.   To: ihnp4!hpfcla!d_taylor
  462.   Subject: file help.c
  463.  
  464.   Enter your message, ending with ^D
  465.  
  466.   this is the message
  467.   Please don't ask me why I used this wierd mode!
  468.  
  469.   ^D
  470.   <end-of-message>
  471.  
  472.   $
  473.  
  474. which is reasonable behaviour!!  (not only that, but this is
  475. almost exactly what /bin/mail does in the same situation!!)
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482. Page 7
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490. Msg Users Guide                                  Version 3.2
  491.  
  492.  
  493.  
  494.      Enough of this foolishness, however, let's get onto the
  495. real stuff;
  496.  
  497.  
  498.  
  499.  
  500. 5.  The Main System
  501.  
  502.      Upon entry to the program,  the  main  screen  will  be
  503. displayed as below;
  504.  
  505.  
  506. -----------------------------------------------------------------
  507. Mailbox is '/usr/mail/mymail' with 13 messages.  [Version 3.0]
  508.  
  509.    1<-   Apr 3  rob             Doing anything tonight?
  510.    2     Apr 5  hplabs!joe      bug in gammon game
  511.    3     Apr 5  root
  512.    4     Apr 6  root            (continuation of previous message)
  513. U  5     Apr 8  decvax!mouse    Re: net.music article decvax:495
  514.    6     Apr 13 John Jacobs      How can you hate RUSH?
  515.    7     Apr 15 kevin           More software requests
  516. N  8     Apr 18 games           Hi there
  517. N  9     Apr 18 Dave Taylor     EditFile.c source...
  518. N 10     Apr 23 veeger!carl     More silly stuff
  519.  
  520.  
  521. |=pipe, !=shell, ?=help, <n>=set current to n, /=search pattern
  522. A)lias, C)hange mailbox, D)elete, F)orward, G)roup reply, M)ail,
  523. N)ext, P)rint, R)eply, S)ave to file, Q)uit, U)ndelete, or eX)it
  524.  
  525. Mail :@
  526. -----------------------------------------------------------------
  527.  
  528.  
  529.  
  530.      There are a number  of  things  to  notice  about  this
  531. screen;
  532.  
  533.    o The top line always displays the current mail file, the
  534.      number  of  messages  in  the file, and the current msg
  535.      version number.
  536.  
  537.    o On the left side of each message is the message  number
  538.      which is unique for each message in the file.
  539.  
  540.    o The arrow ('<-') always points to the current  message.
  541.      This  is  the  message that the commands having default
  542.      message numbers (such as D)elete, and N)ext) will  work
  543.      with.
  544.  
  545.  
  546.  
  547.  
  548. Page 8
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556. Msg Users Guide                                  Version 3.2
  557.  
  558.  
  559.  
  560.    o The date associated with each message is the  date  the
  561.      person  sent  the  message.  This is obtained by either
  562.      the oldest of the ">From" line dates, or, if  possible,
  563.      by parsing the "Date:" line.
  564.  
  565.    o The  third  field  displayed  is  a  truncated   'from'
  566.      address,  and  will  indicate whom the message is from.
  567.      Note that on the sixth and ninth  messages  full  names
  568.      appear instead of the usual machine!login format.  This
  569.      is because these messages have a From line of the form:
  570.  
  571.              From: fullname <address>
  572.      or      From: address (fullname)
  573.  
  574.      which the mailer reads and displays if  possible.   The
  575.      msg mailer (version 2.1 and beyond) also generates this
  576.      header line on outgoing mail.
  577.  
  578.    o The final field is the (optional) subject of  the  mes-
  579.      sage.  Note that message 3 has no subject.
  580.  
  581.    o Message five is an 'Urgent' message  (it  contains  the
  582.      header
  583.  
  584.              Priority: Urgent
  585.  
  586.      to make it urgent) that should be read immediately.
  587.  
  588.    o Messages 8 thru 10 are new since the last time the user
  589.      read  their mail - the "N" in the leftmost margin indi-
  590.      cates this.
  591.  
  592.    o A maximum of ten messages are displayed at  one  time*.
  593.      Further  into  the  document  we'll learn how to change
  594.      'pages' in the mailbox.
  595.  
  596.    o The three line mini-menu will always indicate what com-
  597.      mands are available at the current moment.
  598.  
  599.    o Finally, the '@' character indicates where  the  cursor
  600.      would be, awaiting your input.
  601.  
  602.      The typical action at this point is to use the <return>
  603. key  to  read  the  current message.  This particular option
  604.  
  605.  
  606. __________
  607.  
  608.  0. On terminals with greater than 25 lines, more messages
  609.     will be displayed automatically.
  610.  
  611.  
  612.  
  613.  
  614. Page 9
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622. Msg Users Guide                                  Version 3.2
  623.  
  624.  
  625.  
  626. isn't noted in the  mini-menu,  but  choosing  the  '?=help'
  627. option  will  inform  you  of a number of choices other than
  628. those in the basic menu!
  629.  
  630.      Pressing this key will clear the screen and display the
  631. first  page  of the message.  At the bottom of the page, the
  632. system will write either;
  633.  
  634. Please press <space> to continue             <xx> lines left
  635.  
  636. or
  637.  
  638. Please press <space> to return
  639.  
  640. These indicate how much of  the  current  message  has  been
  641. read: 'continue' indicates the presence of at least one more
  642. line of information (the exact number will be  indicated  on
  643. the  right hand side as 'xx lines left').  Pressing <return>
  644. rather than <space> will automatically  return  you  to  the
  645. main system level at any page of a message.
  646.  
  647.      When the message continues onto another  page  the  msg
  648. mailer  will  also  indicate  how many lines are left in the
  649. message...
  650.  
  651.      If resolve-mode is turned off (see the 'resolve'  flag)
  652. the  current message pointer (the arrow) will be incremented
  653. after reading the message and will point to the next message
  654. in the list.
  655.  
  656.      As you can see, it would be  quite  simple  to  quickly
  657. read  through  all  the pending mail by repeatedly using the
  658. <return> command at the menu  level,  and  the  <space>  bar
  659. while reading each message!
  660.  
  661.      While reading is perhaps the most fundamental  function
  662. that  the  msg program performs, there are a number of other
  663. options available, namely;
  664.  
  665.  
  666. Command                  Action
  667.  
  668.  
  669.    |                  Pipe current message to specified com-
  670.                       mand.
  671.    !                  Shell escape.
  672.    ?                  A help screen listing commands
  673.    +, <space>, or <NEXT> Next page of headers
  674.    -, or <PREV>       Previous page of headers
  675.    =, or <HOME>       Set current message to 1
  676.    *, or <SHIFT>-<HOME> Set current to last message.
  677.  
  678.  
  679.  
  680. Page 10
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688. Msg Users Guide                                  Version 3.2
  689.  
  690.  
  691.  
  692.    <n>                Set current message to n
  693.  
  694.    a                  Alias, change to 'alias' mode
  695.    c                  Change current mail file
  696.    d                  Delete current message
  697.    f                  Forward message to specified user
  698.    g                  Group reply - reply  to  everyone  who
  699.                       received the current message
  700.    h                  Display message + headers
  701.    j                  Increment current message by one
  702.    k                  Decrement current message by one
  703.    m                  Mail to arbitrary user(s)
  704.    n  or  <return>      Next  message  (Read  current,  then
  705.                       increment)
  706.    o                  Option.  Alter current options.
  707.    p                  Print current message.
  708.    r                  Reply to the author of current message
  709.    s                  Save current message to file
  710.    t                  The current time and date is displayed
  711.    q                  Quit - mail deleted, saved in mbox  or
  712.                       left.
  713.    u                  Undelete current message
  714.    v                  Variables.  Display current variables.
  715.    x                  Exit - don't  record  as  read,  don't
  716.                       save...
  717.  
  718.    ^L                 Rewrite screen.
  719.    ^M (<return>)      Read current message
  720.    ^Q, ^Z, DEL        Exit - don't  record  as  read,  don't
  721.                       save...
  722.  
  723.  
  724. That are all the commands available at the main level of the
  725. msg  program!   Now  you can see why it is nice to leave the
  726. three-line menu displayed!
  727.  
  728.  
  729.  
  730.      As an example, let's enter a  series  of  commands  and
  731. indicate what the display would be after each one;
  732.  
  733.  
  734. First off, let's go to the next page of mail with '+';
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746. Page 11
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754. Msg Users Guide                                  Version 3.2
  755.  
  756.  
  757.  
  758. -----------------------------------------------------------------
  759. Mailbox is '/usr/mail/mymail' with 13 messages.  [Version 3.0]
  760.  
  761. N 11<-    Apr 27 Jack           Wanna buy some albums cheap?
  762. N 12      Apr 28 Jack           Cancel the previous offer!
  763. N 13      Apr 30 sdcsvax!dx     Moving day (long)
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773. |=pipe, !=shell, ?=help, <n>=set current to n, /=search pattern
  774. A)lias, C)hange mailbox, D)elete, F)orward, G)roup reply, M)ail,
  775. N)ext, P)rint, R)eply, S)ave to file, Q)uit, U)ndelete, or eX)it
  776.  
  777. Mail :@
  778. -----------------------------------------------------------------
  779.  
  780.      We need to move the current message pointer to  message
  781. 11, so type in '11', then let's read the new current message
  782. by using the next command (typing <return>)...
  783.  
  784.  
  785. -----------------------------------------------------------------
  786.  
  787. Message #11 from Jack           Mailed December 7, 1984 at 8:45 pm
  788.  
  789. Hey Dave! I've got some old AC/DC and KISS albums, and as I know
  790. you are a collector, do you want to buy them off of me before
  791. I make ashtrays out of them (or frisbees...)?
  792.  
  793.                         Humourously,
  794.                                         Jack The Gripper
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802. Please press <space> to return: @
  803.  
  804. -----------------------------------------------------------------
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812. Page 12
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820. Msg Users Guide                                  Version 3.2
  821.  
  822.  
  823.  
  824.      Needless to say,  we  can't  let  this  message  go  by
  825. without  replying!  So let's press the <space> bar to return
  826. to the main menu, then use the reply command to respond.
  827.  
  828.      After pressing the 'r' key, the program asks if a  copy
  829. of  the  source  message is desired (the character under the
  830. cursor indicates the default if  <return>  is  pressed.   In
  831. this case, the default is 'no');
  832.  
  833. copy source message? (y/n) @
  834.  
  835.      We choose to answer no, so press the 'n' key.  Next msg
  836. verifies that the subject is okay;
  837.  
  838. Subject: Re: Wanna buy some albums cheap?@
  839.  
  840. Typing anything other than <return> will allow us to  change
  841. the  subject to something more appropriate.  Furthermore, if
  842. we choose to type our "kill line" character (the same as the
  843. one  the  shell  uses,  probably Control-U or Control-X) the
  844. entire line will be erased.  We decide, however, to leave it
  845. be and press return.
  846.  
  847. Finally, we're asked if we want to send copies of this  mes-
  848. sage  to  anyone.   We  don't, so we press <return> one more
  849. time.
  850.  
  851.      The program then puts us in the vi editor (the default,
  852. assuming  no other editor specified by the '.msgrc' variable
  853. "editor") with a blank file.
  854.  
  855.      After having entered a suitable  reply,  and  left  the
  856. editor,  the msg system then verifies that we really want to
  857. send the message with;
  858.  
  859. Are you sure you want to send this message? (y/n) @
  860.  
  861. To which the response is 'y' for 'yes'.  It then  sends  the
  862. message  off  to  Jack,  who will receive it hopefully quite
  863. soon (or at least  before  he  makes  ashtrays  out  of  the
  864. albums!)
  865.  
  866.  
  867.      Also, if we have a file  called  ".msgheaders"  in  our
  868. home directory, the mailer will include those headers in the
  869. outbound message.  This is to  allow  custom  (personalized)
  870. mail,  especially  headers  like  "Organization:" and "Loca-
  871. tion:".
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878. Page 13
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886. Msg Users Guide                                  Version 3.2
  887.  
  888.  
  889.  
  890.      Message 11 is still the current message, so,  now  that
  891. we  have  saved  it, let's mark it for deletion by using the
  892. delete command 'd'.
  893.  
  894.      The screen is now;
  895.  
  896.  
  897. -----------------------------------------------------------------
  898. Mailbox is '/usr/mail/mymail' with 13 messages.  [Version 3.0]
  899.  
  900. N 11    * Apr 27 Jack           Wanna buy some albums cheap?
  901. N 12<-    Apr 28 Jack           Cancel the previous offer!
  902. N 13      Apr 30 sdcsvax!dx     Moving day (long)
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913. |=pipe, !=shell, ?=help, <n>=set current to n, /=search pattern
  914. A)lias, C)hange mailbox, D)elete, F)orward, G)roup reply, M)ail,
  915. N)ext, P)rint, R)eply, S)ave to file, Q)uit, U)ndelete, or eX)it
  916.  
  917. Mail :@
  918. -----------------------------------------------------------------
  919.  
  920.  
  921.  
  922.      Now lets go back to the first page of messages by typing '=';
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944. Page 14
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952. Msg Users Guide                                  Version 3.2
  953.  
  954.  
  955.  
  956. -----------------------------------------------------------------
  957. Mailbox is '/usr/mail/mymail' with 13 messages.  [version 2.2]
  958.  
  959.    1<-   Apr 3  rob             Doing anything tonight?
  960.    2     Apr 5  hplabs!joe      bug in gammon game
  961.    3     Apr 5  root
  962.    4     Apr 6  root            (continuation of previous message)
  963. U  5     Apr 8  decvax!mouse    Re: net.music article decvax:495
  964.    6     Apr 13 John Jacob       How can you hate RUSH?
  965.    7     Apr 15 kevin           More software requests
  966. N  8     Apr 18 games           Hi there
  967. N  9     Apr 18 Dave Taylor     EditFile.c source...
  968. N 10     Apr 23 veeger!carl     More silly stuff
  969.  
  970.  
  971.  
  972. |=pipe, !=shell, ?=help, <n>=set current to n, /=search pattern
  973. A)lias, C)hange mailbox, D)elete, F)orward, G)roup reply, M)ail,
  974. N)ext, P)rint, R)eply, S)ave to file, Q)uit, U)ndelete, or eX)it
  975.  
  976. Mail :@
  977. -----------------------------------------------------------------
  978.  
  979.  
  980.  
  981.      Gee..note five not only looks  mildly  interesting  but
  982. it's  an  Urgent  message  too!   So let's read it by typing
  983. '5'<return> to make that  the  current  message,  and  press
  984. <return>  again  to  read  it.  After reading the message we
  985. decide that this seems like a message worth keeping  in  the
  986. 'music'  mailbox,  so lets do that by using the save to file
  987. command!
  988.  
  989.      Pressing 's' results in the msg system prompting;
  990.  
  991. Save to what file : @
  992.  
  993. to which we reply '=/music'.  The file is then saved in  the
  994. directory  we  specified as mail home via the '.msgrc' vari-
  995. able "maildir". After saving, the  "Mail:"  prompt  returns,
  996. with  message  5 marked for deletion and the current message
  997. pointer incremented to message 6.
  998.  
  999.      Before we finish up, we suddenly remember that  one  of
  1000. the  messages  was  supposed to be about how to write decent
  1001. documentation for Unix systems, so let's try to find it...
  1002.  
  1003.      First off, we'll move back  to  message  one  with  the
  1004. <HOME>  key (you'll need to use the "-k" starting option and
  1005. be on an HP terminal for this to work!) and then use the '/'
  1006. pattern matching command:
  1007.  
  1008.  
  1009.  
  1010. Page 15
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018. Msg Users Guide                                  Version 3.2
  1019.  
  1020.  
  1021.  
  1022. Mail: Pattern                 / = match anywhere in messages
  1023. Match pattern: @
  1024.  
  1025. we'll type in 'document' and see if the system can find  it.
  1026. After  a brief second or two it returns 'pattern not found.'
  1027. Hmm...maybe it's not either the from or the subject  of  any
  1028. of  the  messages...In  case,  let's try using the new match
  1029. anywhere in message command;
  1030.  
  1031. Mail: @
  1032.  
  1033. To which we type '/' for pattern matching;
  1034.  
  1035. Mail: Pattern                 / = match anywhere in messages
  1036. Match pattern: @
  1037.  
  1038. Now we'll use '/' again to get the match  anywhere  in  file
  1039. option, and then get the prompt;
  1040.  
  1041. Match pattern (in entire mailbox): @
  1042.  
  1043. to which we respond 'document' again.
  1044.  
  1045.      The msg mailer then searches through each line  of  all
  1046. the  messages  in  the  file  and  moves the current message
  1047. pointer to message number 7.  A  quick  check  reveals  that
  1048. this  message  indeed contains the word 'document', but it's
  1049. not the one we want, so we're going to just get outta here!
  1050.  
  1051.      We've had enough mail for today, so lets  quit,  saving
  1052. all messages in our mailbox as defined in the '.msgrc' file,
  1053. except messages 5 and 11, which are marked for deletion.
  1054.  
  1055.      Quit prompts;
  1056.  
  1057. Delete messages? (y/n) @
  1058.  
  1059. to which we answer 'y' for yes.  The next prompt is then;
  1060.  
  1061. Keep mail in incoming mailbox? (y/n) @
  1062.  
  1063. To which we also answer yes...the program then quickly saves
  1064. the  files,  removing message 5 and 11 as it goes along, and
  1065. exits.
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076. Page 16
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084. Msg Users Guide                                  Version 3.2
  1085.  
  1086.  
  1087.  
  1088. 6.  Responses...
  1089.  
  1090.  
  1091.  
  1092.      This section will discuss each command in the msg  pro-
  1093. gram  in  more  detail than above, including the prompts the
  1094. user can expect upon executing the command, the  meaning  of
  1095. different options etc etc.
  1096.  
  1097.  
  1098.    |      Pipe.  This command allows you to pipe the current
  1099.           message  through other filters as you desire.  The
  1100.           shell used for the entire command will  be  either
  1101.           the  one  specified  in your ".msgrc" file, or, if
  1102.           none, /bin/sh.
  1103.  
  1104.    !      Shell.  This allows you to send a command  to  the
  1105.           shell without leaving the program.
  1106.  
  1107.    ?      Help.  This command produces  a  two-page  display
  1108.           that  details  all  the  commands  available  in a
  1109.           reference guide format.
  1110.  
  1111.    /      Pattern match.  This command, on  the  top  level,
  1112.           allows the user to search through all the from and
  1113.           subject lines of the current mailbox  starting  at
  1114.           the  current  message  and  continuing through the
  1115.           end.  If the first character of the pattern  is  a
  1116.           '/', then the program will try to match the speci-
  1117.           fied pattern against  ANY  line  in  the  mailbox.
  1118.           Again,  this works from one after the current mes-
  1119.           sage through the end.
  1120.  
  1121.    <n>    Specify new current message.  Typing in any of the
  1122.           digits  one  thru nine will result in the msg pro-
  1123.           gram producing the prompt 'Set current  to  :  n',
  1124.           where 'n' is the digit entered. Note that changing
  1125.           the current  message  to  a  message  not  on  the
  1126.           current  page  of the headers will result in a new
  1127.           page of headers being displayed.
  1128.  
  1129.    a      Alias.  The alias system is a way  by  which  more
  1130.           complex  mail  addresses  can be shortened for the
  1131.           mail user.  For example;
  1132.  
  1133.           joe, blow : Joe Blow : veeger!hpcnoe!hpcfla!jblow
  1134.  
  1135.           which allows mail to 'joe' with the system expand-
  1136.           ing the address properly.  As is obvious, this not
  1137.           only saves remembering complex addresses, it  also
  1138.           allows  the  address to be optimized to go through
  1139.  
  1140.  
  1141.  
  1142. Page 17
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150. Msg Users Guide                                  Version 3.2
  1151.  
  1152.  
  1153.  
  1154.           the minimum number of machines without anyone hav-
  1155.           ing to be informed of the change.  A more detailed
  1156.           discussion can be found in  the  section  entitled
  1157.           'The Alias System'.
  1158.  
  1159.    c      Change mailbox.  Specifying  this  command  allows
  1160.           the  user  to  change  the  mailbox  file  that is
  1161.           currently  being  read.   This  is  intended   for
  1162.           perusal and reply to previously archived messages.
  1163.           The prompt is 'Name of new mailbox : ' and  enter-
  1164.           ing <return> cancels the operation, while entering
  1165.           a filename causes the program to read that file as
  1166.           the  new  mailbox  file, if possible.  As with the
  1167.           "save" command,  this  command  expands  filenames
  1168.           with  '~'  being your home directory and '=' being
  1169.           your MAILDIR directory, if defined.  This  command
  1170.           also  allows  the special character '!' to be used
  1171.           to allow you to change  to  the  default  incoming
  1172.           mailbox.
  1173.  
  1174.    d, u   Delete and Undelete.  Neither of  these  two  com-
  1175.           mands  have  any prompts and indicate their action
  1176.           by either adding an asterisk to the  current  mes-
  1177.           sage  index entry (indicating deletion pending) or
  1178.           removing the asterisk (indicating that  the  dele-
  1179.           tion is cancelled).
  1180.  
  1181.    f      Forward.  Allows the user to forward  the  current
  1182.           message  to  another user. This copies the message
  1183.           into the edit buffer and allows the  user  to  add
  1184.           their  own  message  too.   The prompt is 'Forward
  1185.           to:' and will expand an alias if entered.
  1186.  
  1187.    j, k   These two keys work similarly to what  they  would
  1188.           do  in  'vi'  or  any of the other screen oriented
  1189.           programs.  The 'j' key moves the  current  message
  1190.           pointer  down  to  the  next message (going to the
  1191.           next page if needed) and the  'k'  key  moves  the
  1192.           current  message pointer back to the previous mes-
  1193.           sage (also changing pages if needed)
  1194.  
  1195.    m      Mail.  Send mail to a specified user.  The  prompt
  1196.           that is associated with this command is 'Send mail
  1197.           to :'.  Entering an alias name results in the full
  1198.           address  being  rewritten  in  parenthesis immedi-
  1199.           ately.  This  prompt  is  followed  by  'Subject:'
  1200.           which  allows  the  user to title their note.  The
  1201.           final field is 'Copies to: ', which  allows  other
  1202.           people specified to receive "carbon copies" of the
  1203.           message. Upon entering all three items the vi edi-
  1204.           tor  (or any other editor specified by $EDITOR) is
  1205.  
  1206.  
  1207.  
  1208. Page 18
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216. Msg Users Guide                                  Version 3.2
  1217.  
  1218.  
  1219.  
  1220.           invoked and the message can be composed.
  1221.  
  1222.    n      Next message.  See above.
  1223.  
  1224.    o      Options.  This is a small  subsystem  of  the  msg
  1225.           system  with the various options selected by their
  1226.           first letter, '1' enabling the option,  '0'  disa-
  1227.           bling  it  and  <return> leaving it unchanged. 'r'
  1228.           returns to the main system.
  1229.  
  1230.    p      Print message.  This allows you to print  out  the
  1231.           current  message  to  a previously defined printer
  1232.           (see the section on the  '.msgrc'  discussing  the
  1233.           "print" variable)
  1234.  
  1235.    q      Quit.  This command's action is dependent  on  the
  1236.           current state of the msg program.  For example, if
  1237.           the current mailbox is  the  default  mailbox  the
  1238.           messages  that  are  not  deleted are saved in the
  1239.           file $home/mbox, whereas  if  it  is  a  specified
  1240.           mailbox  the  to-be-deleted  messages  are removed
  1241.           from the file.  The possible prompts are 'Save  to
  1242.           mailbox?' if the default mailbox is being read and
  1243.           there is at least one message to save, 'Delete all
  1244.           messages'  if  all  messages  in  any  mailbox are
  1245.           marked for deletion or 'Delete message(s)?' if not
  1246.           reading  the  default  mailbox  and there are some
  1247.           messages that should be saved.  A response of  'n'
  1248.           (no)  to any of these questions will result in the
  1249.           quit  command  aborting,  and  the   files   being
  1250.           untouched.
  1251.  
  1252.    r      Reply.  Reply to the author of  the  current  mes-
  1253.           sage.   If the autocopy flag is not specified, the
  1254.           program will prompt 'Copy Message? (y/n)' to which
  1255.           the  user can specify whether a copy of the source
  1256.           message is to be copied into the edit  buffer,  or
  1257.           not.  If copied in, all lines from the message are
  1258.           prepended with the prefix character  sequence,  as
  1259.           specified in the users ".msgrc" file.
  1260.  
  1261.    s      Save to file.  As demonstrated in the above  exam-
  1262.           ple, this command allows the current message to be
  1263.           copied into an arbitrary file.  If there  is  any-
  1264.           thing   in  the  file  currently  the  message  is
  1265.           appended to the end, otherwise the file is created
  1266.           containing  only the message.  The prompt for this
  1267.           command is 'Save to  file  :  '.   A  response  of
  1268.           <return>  cancels the command and returns the user
  1269.           to the system prompt.  After saving  a  file,  the
  1270.           message  is  marked  for  deletion and the current
  1271.  
  1272.  
  1273.  
  1274. Page 19
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282. Msg Users Guide                                  Version 3.2
  1283.  
  1284.  
  1285.  
  1286.           message pointer is  incremented.   There  are  two
  1287.           available   meta-characters   when   specifying  a
  1288.           filename too - '~' as the first character  expands
  1289.           to your home directory, and '=' as the first char-
  1290.           acter expands to the mail folder directory defined
  1291.           via  the  'maildir' variable in the users ".msgrc"
  1292.           file.
  1293.  
  1294.    t      Time.  This simply displays the current  date  and
  1295.           time in a nice readable format.
  1296.  
  1297.    v      Variables.  This is also a small subsystem of  the
  1298.           msg  system  allowing  you  to  alter the value of
  1299.           various msg variables.  The variables that you can
  1300.           change  are the 'EDITOR' variable which determines
  1301.           what editor to use when you compose a message, the
  1302.           'MAILBOX'  variable  which indicates where mail is
  1303.           to be put after being  read,  and  the  'USERNAME'
  1304.           variable.   (Note  that  only  the  superuser  can
  1305.           change their username within the program)
  1306.  
  1307.    x      Exit.  This is functionally the same as  answering
  1308.           'n'o to the quit command prompt, and simply leaves
  1309.           the program in the quickest possible manner.  This
  1310.           command   can   also  occur  from  typing  DELETE,
  1311.           control-Q or control-Z, all of which are also exit
  1312.           commands.
  1313.  
  1314.  
  1315.  
  1316.  
  1317. 7.  Special Outgoing Mail Processing
  1318.  
  1319.  
  1320.  
  1321.      There are a few extra features that the  mailer  offers
  1322. on outgoing mail that are worthy of mention;
  1323.  
  1324.  
  1325.      The first, and probably the most exciting  feature,  is
  1326. the ability to send encrypted mail!  To do this is extremely
  1327. simple:  You need merely to have two 'key lines'  "[encode]"
  1328. and "[clear]" in the message body.
  1329.  
  1330.      Consider the following outgoing message:
  1331.  
  1332.         Joe,
  1333.                 Remember that talk we had about Amy?  Well,
  1334.         I talked to my manager about it and he said...
  1335.  
  1336.         uhh...better encrypt this...the usual 'key'...
  1337.  
  1338.  
  1339.  
  1340. Page 20
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348. Msg Users Guide                                  Version 3.2
  1349.  
  1350.  
  1351.  
  1352.         [encode]
  1353.  
  1354.                 He said that Amy was having family problems
  1355.         and that it had been affecting her work.
  1356.  
  1357.                 Given this, I went and talked to her, and
  1358.         told her I was sorry for getting angry.  She said
  1359.         that she understood.
  1360.  
  1361.                 We're friends again!!
  1362.         [clear]
  1363.  
  1364.                 Exciting stuff, eh?
  1365.  
  1366.                                          Mike
  1367.  
  1368. While this is obviously quite  readable  while  being  typed
  1369. into  the  editor,  as  soon  as the message is confirmed as
  1370. wanting to be sent, the msg mailer prompts with;
  1371.  
  1372.         Enter encryption key: @
  1373.  
  1374. and accepts a key  (or  series  of  8  or  less  characters)
  1375. without  echoing  them  to the screen.  After entry, it will
  1376. ask for the same key again to confirm  it,  then  *poof*  it
  1377. will encrypt and send the mail!
  1378.  
  1379.      If you have the "copy" option enabled, the program will
  1380. save  your  copy  of the message encrypted too.  (This is to
  1381. ensure the privacy and security of your archived mail too!)
  1382.  
  1383.      If the mailer doesn't ask for the encryption key,  it's
  1384. because you don't have the '[encode]' entered as the first 8
  1385. characters of the line.  It MUST be so for this to work!!
  1386.  
  1387.      On the other end, a person receiving  this  mail  (they
  1388. must  also be using msg to receive it, since this mailer has
  1389. a unique encryption program) will be reading the message and
  1390. then suddenly be prompted;
  1391.  
  1392.         Enter decryption key: @
  1393.  
  1394. and will again be asked to re-enter it to confirm.  The pro-
  1395. gram  will then on-the-fly decrypt the mail and display each
  1396. line as it is decoded.  The '[clear]'  line  signifies  that
  1397. the block to encrypt is done.
  1398.  
  1399.      For those sites not running msg, I also have  available
  1400. the  encryption  code  as  a separate program suitable for a
  1401. filter for use with other mailers...
  1402.  
  1403.  
  1404.  
  1405.  
  1406. Page 21
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414. Msg Users Guide                                  Version 3.2
  1415.  
  1416.  
  1417.  
  1418.      The other option on outgoing mail  is  the  ability  to
  1419. specify  what  section  of  the  message  you  want  to have
  1420. archived (assuming "copy" is enabled) and what  section  you
  1421. don't.   This  is  most  useful  for sending out source file
  1422. listings and so on...
  1423.  
  1424.      To indicate the end of the section that should be saved
  1425. in the archive, you need merely to have the line
  1426.  
  1427.         [no save]
  1428.  
  1429. appear by itself on a line.  This will be removed  from  the
  1430. outgoing  mail,  and will indicate the last line of the mes-
  1431. sage in the saved mail.
  1432.  
  1433.  
  1434.  
  1435.  
  1436. 8.  The Mail Archive File
  1437.  
  1438.  
  1439.  
  1440.      The format of the mail saved to  the  archive  file  is
  1441. also  worth a quick discussion.  Unlike the usual exact copy
  1442. of the entire header section, the archived mail has the fol-
  1443. lowing header;
  1444.  
  1445.         From To:<name> 15 Jan 1985 4:54:30 MST
  1446.         Original-To: <address>
  1447.         Subject: <subject>
  1448.  
  1449.         <message body>
  1450.  
  1451. The first line, the 'From'  line,  is  deliberately  mangled
  1452. with the occurance of the 'To:<name' to ensure that when you
  1453. are perusing your archive file with the mailer that you  see
  1454. WHO  the  message was TO, since they're all going to be FROM
  1455. you!!  The <name> will either be the  machine!login  of  the
  1456. person, or, if used as an alias, it will be the alias name.
  1457.  
  1458.      To read this file, you can use the mailer, choosing the
  1459. "C)hange  mailbox"  command,  or  start  up  specifying your
  1460. archive file as the mailbox to read.
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472. Page 22
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480. Msg Users Guide                                  Version 3.2
  1481.  
  1482.  
  1483.  
  1484. 9.  Using MSG with the Notes System
  1485.  
  1486.  
  1487.  
  1488.      A new and innovative feature in the 3.0 release of  the
  1489. msg  program is the ability to read files saved by the notes
  1490. system and display  them  as  individual  messages.   Unfor-
  1491. tunately,  the notes software does not currently save a note
  1492. with the subject line, however, so the mailer uses the  next
  1493. best thing and displays each note in the form:
  1494.  
  1495.     1  Apr 5  hplabs!kundler    Note from group net.unix-wizards
  1496.     2  Apr 7  hplabs!richards   Note from group net.unix-wizards
  1497.  
  1498. and so on.  The individual notes can be replied to by  using
  1499. the  reply command, as with normal mail, and the mailer will
  1500. modify it's behaviour to work with this particular brand  of
  1501. mail file.
  1502.  
  1503.      How does the mailer know if it's reading  a  file  that
  1504. contains normal mail versus a saved set of notes?  By check-
  1505. ing the first line of the file - if  it's  the  header  line
  1506. that  notes emits (ie "/***** host:login / notesgroup / date
  1507. **/") then the file is considered to be a  notes  file.   If
  1508. not, the default for unknown files is to assume they're mail
  1509. files.
  1510.  
  1511.  
  1512.  
  1513.  
  1514. 10.  The Alias System
  1515.  
  1516.  
  1517.  
  1518.      As mentioned previously, there exists in the msg system
  1519. a set of aliases that associate an arbitrary word (such as a
  1520. persons name) to a complex address or group. The  advantages
  1521. are  readily apparent; rather than remembering an address of
  1522. the form;
  1523.  
  1524. machine1!machine2!machine3! ... !machineN!account
  1525.  
  1526. the user merely has to remember a single word.
  1527.  
  1528.      Two alias tables are available for a each  user  within
  1529. msg, namely the system alias file and the users' alias file.
  1530. The system alias file is created and maintained (by the sys-
  1531. tem      administrator)      by     editing     the     file
  1532. '/usr/mail/.alias_text' as described  in  the  documentation
  1533. with  the  newalias  command, then running the newalias pro-
  1534. gram.
  1535.  
  1536.  
  1537.  
  1538. Page 23
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546. Msg Users Guide                                  Version 3.2
  1547.  
  1548.  
  1549.  
  1550.      An individual user can also have an  alias  file  which
  1551. works  in  conjunction with the system aliases.  To do this,
  1552. they  need  merely  to  peruse  the  documentation  for  the
  1553. newalias  command  and  create  a file as indicated therein.
  1554. After executing the program, the aliases will  be  available
  1555. for using from within msg.
  1556.  
  1557.      The command checkalias is also useful  to  ensure  that
  1558. the aliases are installed correctly.
  1559.  
  1560.      Within msg,  however,  the  alias  system  acts  as  an
  1561. entirely  different  program, with it's own commands and own
  1562. mini-menu.  The menu replaces the standard mini-menu with;
  1563.  
  1564.  
  1565. ---------------------------------------------------------------------
  1566.  
  1567.                        Alias commands
  1568.  
  1569. A)lias current message, C)heck alias, M)ake user alias, R)eturn
  1570.  
  1571.  
  1572. Alias: @
  1573. ---------------------------------------------------------------------
  1574.  
  1575.  
  1576. The commands are;
  1577.  
  1578.    a      Alias current message. This  allows  the  user  to
  1579.           create an alias that has the return address of the
  1580.           current message as the address field of the alias.
  1581.           It  prompts  for  a unique alias name.   Important
  1582.           note: when you alias an address in  this  fashion,
  1583.           the  mailer  will  try  to  minimize the amount it
  1584.           needs to store by  iteratively  comparing  machine
  1585.           names  in  the  path  with  the  machines  in  the
  1586.           pathalias database.  Once it finds  an  entry  the
  1587.           address will be saved at that point.   For further
  1588.           information, please  see  the  "Msg  Alias  System
  1589.           Guide".
  1590.  
  1591.    c      Check alias.  This is a  simple  way  of  checking
  1592.           what  is in the alias database - it prompts for an
  1593.           alias name, and  returns  the  address  associated
  1594.           with  that  name  or  the error message 'alias not
  1595.           found' as appropriate.
  1596.  
  1597.    m      Make user alias.  This will prompt  for  a  unique
  1598.           alias  name and then for an address.  The informa-
  1599.           tion provided will be  added  to  your  individual
  1600.           alias_text file ($home/.alias_text) and then added
  1601.  
  1602.  
  1603.  
  1604. Page 24
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612. Msg Users Guide                                  Version 3.2
  1613.  
  1614.  
  1615.  
  1616.           to the database.
  1617.  
  1618.    r      Return.  Return to the main level of the msg  pro-
  1619.           gram.
  1620.  
  1621.  
  1622.  
  1623.  
  1624. 11.  While We're Talking Aliases...
  1625.  
  1626.      Another feature worthy of discussion, since  it's  been
  1627. getting  lots of veiled references throughout this document,
  1628. is the system alias section.  This is implemented using  the
  1629. uucp  pathalias  database,  with  a  file (whose location is
  1630. specified in the hdrs/sysdefs.h file - see the Configuration
  1631. Guide) in the format:
  1632.  
  1633.   hostname <tab> address!%s
  1634.  
  1635. The actual details of the file are, suprise suprise, located
  1636. in the Alias System Users Guide.
  1637.  
  1638.      Anyway, to use them is quite  simple...when  specifying
  1639. the  address  of  someone,  you can either have an alias for
  1640. them already, resond to their mail to you, or use the system
  1641. alias feature!
  1642.  
  1643.      Enough hype, right?  Okay...to use  this  feature,  you
  1644. specify  an  address  by either "machine!person" ignoring if
  1645. your specific machine  can  talk  directly  to  the  machine
  1646. specified,  or, if you prefer the ARPANET addressing scheme,
  1647. "person@machine".  When you enter the address as  specified,
  1648. the  mailer  will quickly search through the pathalias data-
  1649. base file and expand the specified address to be  a  legiti-
  1650. mate routing address.
  1651.  
  1652.      What's really nice about this is that the address  that
  1653. we're going to send to can be either on ARPA, CSNET, BITNET,
  1654. uucp, or any other network.  The method  of  specifying  the
  1655. basic address is the same regardless!
  1656.  
  1657.      For example,  mail  to  me  could  be  sent  as  either
  1658. "hpfcla!d_taylor"  (or  "hpfcla!hpcnof!d_taylor",  with  the
  1659. first machine name  being  expanded)  or  "d_taylor@hpfcla".
  1660. msg will expand them both in the same manner.
  1661.  
  1662.      As the song goes, check the alias guide...
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670. Page 25
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678. Msg Users Guide                                  Version 3.2
  1679.  
  1680.  
  1681.  
  1682. 12.  Expert Mail Users and Debugging the Mailer
  1683.  
  1684.      There are some additional facilities available  in  the
  1685. msg  mailer for those people who are knowledgable about mail
  1686. protocols, or trying to debug/track down a problem.
  1687.  
  1688.      The 'h' command at the outermost level  of  the  mailer
  1689. will  display  the current message ignoring the current set-
  1690. ting of the 'weed' option.  This is most useful for  answer-
  1691. ing questions of the form "I wonder what this guy put in his
  1692. header?" and such.  This command does not  show  up  on  the
  1693. mini-menu  because  it  is  somewhat  esoteric,  but it DOES
  1694. appear on the '?' help screen (can you find it there?).
  1695.  
  1696.      The '@' command at the outermost level  of  the  mailer
  1697. will output a screen of debugging information, including the
  1698. number of lines and offsets of each of the  message  in  the
  1699. current mailbox.
  1700.  
  1701.      The '#' command at the outermost level  of  the  mailer
  1702. will  display  the  entire stored 'record structure' for the
  1703. current message.
  1704.  
  1705.      The '%' command at the outermost level  of  the  mailer
  1706. will display the full computed return address of the current
  1707. message.
  1708.  
  1709.      Starting up msg with the "-d" debug option will  create
  1710. a file called Msg.debug.info in your home directory and con-
  1711. tain a wealth of useful information (to me,  at  least!)  to
  1712. aid in tracking down what errors are occuring and why.  With
  1713. this option on, most  everything  acts  the  same  with  the
  1714. exception  of when you get new mail while in the mailer - it
  1715. will indicate "New mail: N bytes" rather than the usual "New
  1716. mail has arrived...hang on...".
  1717.  
  1718.  
  1719.      If there are any problems with the mailer,  please  try
  1720. to  recreate  the error with the debug option enabled before
  1721. sending defect reports my way.
  1722.  
  1723.  
  1724.      One final note: all error numbers reported by the  pro-
  1725. gram are defined in the HP-UX Reference Manual in Errno(2).
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736. Page 26
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744. Msg Users Guide                                  Version 3.2
  1745.  
  1746.  
  1747.  
  1748. 13.  Credits and so on
  1749.  
  1750.      This mailer has been evolving over the past year or  so
  1751. with some extremely valuable input from the following people
  1752. at Hewlett Packard; Mark Laubach, Walt Underwood,  Tw  Cook,
  1753. Larry  Fenske,  Rob  Sartin,  and  of course Carl Dierschow.
  1754. There have been many others, to numerous  to  mention,  that
  1755. have   inspired  me  with  questions  like  "why  can't  the
  1756. mailer..." or "why does it do that?"
  1757.  
  1758.      Also helpful was the ability to have my  'own'  machine
  1759. to close up the many many iterative loops that this software
  1760. has gone through - since being on a big  multi-user  machine
  1761. tends to slow it down to a standstill...
  1762.  
  1763.      Finally,  it's  also  been  a  very  useful  experience
  1764. overall,  confirming  my  beliefs  that  iterative  software
  1765. design and keeping a close watch on users (not to mention an
  1766. open mind and mailbox!) improves a product manyfold.
  1767.  
  1768.      Incidentally, this entire mail system,  including  this
  1769. documentation, is
  1770.  
  1771.                (C) Copyright 1986 Dave Taylor
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802. Page 27
  1803.  
  1804.  
  1805.  
  1806.  
  1807. SHAR_EOF
  1808. if test 50526 -ne "`wc -c < 'Guide.fmtd'`"
  1809. then
  1810.     echo shar: error transmitting "'Guide.fmtd'" '(should have been 50526 characters)'
  1811. fi
  1812. fi
  1813. exit 0
  1814. #    End of shell archive
  1815.